package com.lyz.dataStructure.huawei;

import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

/**
 * @Author:759057893@qq.com Lyz
 * @Date: 2019/4/16 20:07
 * @Description:
 **/


public class Test8 {
    public static void main(String[] args) {
        Scanner sc= new Scanner(System.in);
        while(sc.hasNext()){
            String s = sc.next();
            int maxCount=0;
            int minCount=0;
            int num =0;
            int sum = 0;
            if(s.length()<=128&&s.length()>0) {
                for (int i = 0; i < s.length(); i++) {
                    if (s.charAt(i) >= 'A' && s.charAt(i) <= 'Z') {
                        maxCount++;
                    } else if (s.charAt(i) >= 'a' && s.charAt(i) <= 'z') {
                        minCount++;
                    } else if (s.charAt(i) >= '0' && s.charAt(i) <= '9') {
                        num++;
                    } else {
                       sum++;
                    }
                }
            }
            System.out.println("A-Z字符个数为："+maxCount);
            System.out.println("a-z字符个数为："+minCount);
            System.out.println("0-9字符个数为："+num);
            System.out.println("其他字符个数为："+sum);
        }
    }

}
